Bentley Map V8i (SELECTseries 10) Help

To Specify an XML Format File

Some users want to be able to specify an XML formatted file as input for the domain list. This procedure specifies a domain list to be added but will replace the XML file normally created by Bentley Geospatial Administrator with one provided by the user.

  1. Create a domain entry just as you normally would, but do not add any entries.
  2. Create your XML file using a format as shown below.
    <?xml version="1.0" encoding="utf-16"?> 
    <DomainListDef name="myDomainList1" numColumns="2" genFile="myDomainList1.xml">
          <domainRow col1="ABC" col2="ABC-123" />
          <domainRow col1="DEF" col2="DEF-456" />
          <domainRow col1="GHI" col2="GHI-789" /> 
    </DomainListDef>
  3. In the Files section of your workspace, add a file category (name is not important).
  4. Select the newly created file category, then select Add > Workspace File and then select the XML file, change the destination directory to xml\domains as shown.
  5. For the feature property, select the domain reference just as you would normally for a named domain list, being sure to update the # cols accordingly.
  6. Export and run workspace.